package com.hly.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hly.common.utils.PageUtils;
import com.hly.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author dudulu
 * @email 52039@Miku.com
 * @date 2021-03-27 12:08:09
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean updateBrandNameByBrandId(Long brandId,String brandName);

    List<CategoryBrandRelationEntity> selectRelationByBrandId(Long brandId);

    boolean saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    List<CategoryBrandRelationEntity> selectBrandsListByCateLogId(Long cateLogId);

    void updateCategory(Long catId, String name);
}

